<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>角色管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/base.css">
	<style type="text/css">
		body{height:100%;width:100%;margin:0;padding:0;}
	</style>
	<script type="text/javascript">
	function addRole() {
		location.href = "${pageContext.request.contextPath}/gotoAddRole.do";
	}
	</script>
  </head>
  
  <body>
  	<input type="button" value="添加角色" onclick="addRole()">	
  	<table id="tab_user"  width="100%" border="1" cellpadding="0" cellspacing="0">
		<tr>
		  <th width="10%" nowrap="nowrap">角色编号</th>
		  <th width="15%" nowrap="nowrap">角色名称</th>
		  <th width="15%" nowrap="nowrap">创建时间</th>
		  <th width="15%" nowrap="nowrap" >状态</th>
		  <th width="15%" nowrap="nowrap">操作</th>
		</tr>
		<c:forEach items="${roleList }" var="role">
		<tr>
			<td>${role.roleId }</td>
			<td>${role.roleName }</td>
			<td>${role.createTime }</td>
			<td>${role.state }</td>
			<td>修改  删除</td>
		</tr>
		</c:forEach>
  	</table>
  </body>
</html>
